package DesignPatern.A18_备忘录模式.A01_基本模式;

/**
 * @Author: Du
 * @Date: 2021/8/3 15:03
 */
public class A01_Main
{
    public static void main(String[] args)
    {
        Originator originator = new Originator();
        Caretaker caretaker = new Caretaker();
        caretaker.setMemento(originator.createMemento());
        originator.restoreMemento(caretaker.getMemento());
    }
}
